package com.yhq.basic.jvm.classload.others;

/**
 * @author hqyin
 * @date 2023/3/19 2:42 下午
 */
public class Sun extends Father {
    private static String name = "xxxx";

    Sun() {
        System.out.println("子类构筑器");
    }

    {
        System.out.println("子类代码块");
    }

    static {
        System.out.println("子类静态代码块");
    }

    public static void main(String[] args) {
        System.out.println(name);
    }
}
